import request from '@/common/request.js'
import { formatGetUri } from '@/common/util.js'

const api = {};
const IMAGES = 'images';
// 邀请海报
api.invite_poster = params => request.globalRequest(`${IMAGES}/invite_poster`, 'POST', params, 1)
// 商品海报
api.goods_poster = params => request.globalRequest(`${IMAGES}/goods_poster`, 'POST', params, 1)
// GET请求方式
//api.homeindex = params => request.globalRequest(`${PORT1}/index${formatGetUri(params)}`, 'GET',{}, 1)
export default api